package com.antfin.exam.bonus.event;

import com.antfin.exam.bonus.model.ReduceScoreEntity;
import org.springframework.context.ApplicationEvent;

/**
 * 扣分事件
 */
public class ReduceScoreEvent extends ApplicationEvent {
    private ReduceScoreEntity reduceScoreEntity;
    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public ReduceScoreEvent(Object source,ReduceScoreEntity reduceScoreEntity) {
        super(source);
        this.reduceScoreEntity = reduceScoreEntity;
    }

    public ReduceScoreEntity getReduceScoreEntity() {
        return reduceScoreEntity;
    }
}
